function AbsImageNumber() {
};

AbsImageNumber.gui = function(unique, exist, urls) {
  if (exist) {
    var gui = { move: [],
                close: []
              };
    for (var i = 0, il = urls.length; i < il; i++) {
      gui.move[gui.move.length] = document.getElementById(unique + '_' + i + '_move_div');
      gui.close[gui.close.length] = document.getElementById(unique + '_' + i + '_close_div');
    }
    return gui;
  } else {
    return { move: document.getElementById(unique + '_move_div'),
             content: document.getElementById(unique + '_content_div'),
             number: document.getElementById(unique + '_number_text'),
             save: document.getElementById(unique + '_save_button'),
             close: document.getElementById(unique + '_close_button')
           };
  }
};
